package com.htjx.mall.commons.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.htjx.mall.commons.models.product.Catalog;

public interface CatalogMapper {
	
	public void insertOne(Catalog catalog); 
	
	public void updateOne(Catalog catalog);
	
	public void deleteOne(long id);
	
	public Catalog selectOne(long id);
	
	public List<Catalog> selectByProperty(@Param("p_name") String propertyName, @Param("p_value") String propertyValue);
	
	public List<Catalog> selectByProductId(long product_id);
	
}
